using System;

namespace SMS.SMPPClient.Util
{
    /// <summary>
    /// Marker/utility class to define destination addresses for the submit_multi.
    /// </summary>
    public sealed class DestinationAddress
    {
        private byte[] _Packet;

        /// <summary>
        /// Creates a DestinationAddresses byte array.  This is for use by the
        /// factory only.
        /// </summary>
        /// <param name="packet"></param>
        internal DestinationAddress(byte[] packet)
        {
            _Packet = packet;
        }

        /// <summary>
        /// Returns a clone of the byte representation of this DestinationAddresses.
        /// </summary>
        /// <returns></returns>
        public byte[] GetBytes()
        {
            return (byte[])_Packet.Clone();
        }
    }
}
